package com.example.travel.domain.request;

import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotNull;

/**
 * @Author : LinQingLiang
 * @file : pageQuery.java
 * @Since : 2023/1/15 16:41
 */

@Data
public class PageQuery {

    @ApiModelProperty(value = "当前页",required = true)
    @NotNull(message = "页码不能为空")
    private Integer pageNum;

    @ApiModelProperty(value = "每一页传多少条",required = true)
    @NotNull(message = "每页多少条不能为空")
    private Integer pageSize;
}
